$OpenBSD: patch-Makefile,v 1.1.1.1 2003/11/03 20:34:18 sturm Exp $
--- Makefile.orig	2002-08-18 18:06:16.000000000 +0200
+++ Makefile	2003-11-02 12:53:29.000000000 +0100
@@ -1,16 +1,15 @@
-GTK_INCLUDE = `pkg-config gtk+-2.0 --cflags`
-GTK_LIB = `pkg-config gtk+-2.0 --libs`
+GTK_INCLUDE = `pkg-config gtk+-2.0 gthread-2.0 --cflags` -I${LOCALBASE}/include
+GTK_LIB = `pkg-config gtk+-2.0 gthread-2.0 --libs`
 
-FLAGS = -O2 -Wall -fPIC $(GTK_INCLUDE) 
-LIBS = $(GTK_LIB) 
-LFLAGS = -shared
+CFLAGS += -fPIC $(GTK_INCLUDE) 
+LIBS += $(GTK_LIB)
+LFLAGS += -shared
 
-CC = gcc $(CFLAGS) $(FLAGS)
 
 OBJS = gkrellshoot.o
 
 gkrellshoot.so: $(OBJS)
-	$(CC) $(OBJS) -o gkrellshoot.so $(LFLAGS) $(LIBS) 
+	$(CC) $(CFLAGS) $(OBJS) -o gkrellshoot.so $(LFLAGS) $(LIBS) 
 
 clean:
 	rm -f *.o core *.so* *.bak *~
